/*
 * Copyright (c) 2018-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

namespace TencentCloud.Teo.V20220901.Models
{
    using Newtonsoft.Json;
    using System.Collections.Generic;
    using TencentCloud.Common;

    public class OriginACLEntity : AbstractModel
    {
        
        /// <summary>
        /// Instance type. Valid values:
        /// -l7: L7 acceleration domain;
        /// -l4: L4 proxy instance.
        /// </summary>
        [JsonProperty("Type")]
        public string Type{ get; set; }

        /// <summary>
        /// Instance detail. Valid values:
        /// -When Type = l7, please enter the L7 acceleration domain.
        /// -When Type = l4, please enter the L4 proxy instance ID.
        /// </summary>
        [JsonProperty("Instances")]
        public string[] Instances{ get; set; }

        /// <summary>
        /// Operation mode. Valid values:.
        /// - enable: enabled L7/L4 instances.
        /// - disable: disable L7/L4 instances.
        /// </summary>
        [JsonProperty("OperationMode")]
        public string OperationMode{ get; set; }


        /// <summary>
        /// For internal usage only. DO NOT USE IT.
        /// </summary>
        public override void ToMap(Dictionary<string, string> map, string prefix)
        {
            this.SetParamSimple(map, prefix + "Type", this.Type);
            this.SetParamArraySimple(map, prefix + "Instances.", this.Instances);
            this.SetParamSimple(map, prefix + "OperationMode", this.OperationMode);
        }
    }
}

